package com.aps.entity.domain.dish;

import java.math.BigDecimal;

import javax.persistence.*;

import com.aps.entity.domain.BaseEntity;
import com.aps.entity.eunm.TimeUnitType;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author liaoguangan
 * @description <菜品工序>
 * @date 2018/4/1 14:51
 */
@Table(name = "aps_dish_process")
@Entity
@Data
@ApiModel
public class DishProcess extends BaseEntity {

    @Column
    @ApiModelProperty("工序代码")
    private String code;

    @Column
    @ApiModelProperty("工序描述")
    private String comment;

    @Column
    @ApiModelProperty("加工时长")
    private BigDecimal processTime;

    @Column
    @ApiModelProperty("加工时长单位")
    @Enumerated(EnumType.STRING)
    private TimeUnitType processTimeUnit;

    @Column
    @ApiModelProperty("菜品代码")
    private String dishCode;

    @Transient
    //菜品名称
    private String dishName;
}
